<template>
  <div class="container">
    <div class="user-item">
      <TableTitle :title="$t('userSetting.title.baseinfo')" />
      <UserPanel />
    </div>
    <div class="user-item">
      <TableTitle :title="$t('userSetting.title.editPwd')" />
      <EditPwd />
    </div>
    <div class="user-item">
      <TableTitle :title="$t('userSetting.title.editPhone')" />
      <EditPhone />
    </div>
    <div class="user-item">
      <TableTitle :title="$t('userSetting.title.editEmail')" />
      <EditEmail />
    </div>
  </div>
</template>

<script lang="ts" setup>
  import TableTitle from '@/components/table-title/index.vue';
  import UserPanel from './components/user-panel.vue';
  import EditPwd from './components/edit-pwd.vue';
  import EditPhone from './components/edit-phone.vue';
  import EditEmail from './components/edit-email.vue';
</script>

<script lang="ts">
  export default {
    name: 'Setting',
  };
</script>

<style scoped lang="less">
  .container {
    padding: 0 44px 20px;
    height: 100%;
    overflow: auto;
  }
  .user-item {
    padding-top: 32px;
  }

  .wrapper {
    padding: 20px 0 0 20px;
    min-height: 580px;
    background-color: var(--color-bg-2);
    border-radius: 4px;
  }

  :deep(.section-title) {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 14px;
  }
</style>
